package ru.agiledev.akb.server.logic;

import ru.agiledev.akb.server.domain.presentation.Author;
import ru.agiledev.akb.shared.User;

/**
 * Created by a.kirillov
 * Date: 4/7/11 Time: 11:49 PM
 */
public class UserManager {
    public static Author createAuthor(User user){

        Author author = new Author();

        author.setLogin(user.getLogin());
        author.setFirstName(user.getFirstName());
        author.setLastName(user.getLastName());
        author.setAffilation(user.getAffilation());
        author.setEmail(user.getEmail());
        author.setPassword(user.getPassword());

        return author;
    }
}
